#pragma once

static GLfloat _mallet_vertices[] = {
		// order of coordinates: x, y, r, g, b
        0.0f, -0.4f, 	0.0f, 0.0f, 1.0f,
        0.0f,  0.4f, 	1.0f, 0.0f, 0.0f,
};

class mallet {
public:
	void
	binddata() {
		GLsizei stride = sizeof(GLfloat) * 5;
		glEnableVertexAttribArray(0);
		glVertexAttribPointer(0, 2, GL_FLOAT, GL_FALSE, stride, _mallet_vertices);
		
		glEnableVertexAttribArray(1);
		glVertexAttribPointer(1, 3, GL_FLOAT, GL_FALSE, stride, _mallet_vertices + 2);
	}
	
	void 
	draw() {
		glDrawArrays(GL_POINTS, 0, 2);
	}
};